<template>
  <div class="content-box">
    <div class="content-box-title">
      <div class="left">
        <div class="block"></div>
        <div class="title">{{ title }}</div>
      </div>
      <!-- button插槽 -->
      <slot name="button"></slot>
    </div>
    <!-- 内容插槽 -->
    <div class="content-box-content">
      <slot name="content"></slot>
    </div>
  </div>
</template>
<script>

export default {
  props: {
    title: {
      type: String,
      default: "title",
    },
  },
  data() {
    return {
    };
  },
  created() {

  },
  methods: {},
  mounted() {
    // console.log('thi11s', this);
  },
  customOptions: 'ffff'
};
</script>
<style lang="less" scoped>
.content-box {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  &-title {
    height: 40px;
    background-color: rgba(89, 165, 248, 0.5);
    border-radius: 8px 8px 0px 0px;
    display: flex;
    flex-shrink: 0;
    justify-content: space-between;
    align-items: center;
    .left {
      display: flex;
      .block {
        width: 4px;
        height: 16px;
        margin-left: 16px;
        margin-right: 8px;
        background-color: #9bcbff;
        border-radius: 2px;
      }
      .title {
        font-size: 14px;
        font-family: Microsoft YaHei;
        font-weight: 300;
        color: #ffffff;
      }
    }
  }
  &-content {
    width: 100%;
    flex: 1;
    height: 100%;
    background: rgba(89, 165, 248, 0.2);
    border-radius: 0 0 8px 8px;
  }
}
</style>